package com.qingcheng.service.seckill;

import com.qingcheng.entity.SeckillStatus;
import com.qingcheng.pojo.seckill.SeckillGoods;

import java.util.List;

/**
 * Welcome to the most Amazing IntelliJ IIIDEA.
 * Creat0r: ^_^ fffantianxing ^_^
 * Date: 2019-07-23
 * Time: 20:43
 */
public interface SeckillService {

    /**
     * 查询所有秒杀商品
     * @param key
     * @return
     */
    public List<SeckillGoods> list(String key);

    /**
     * 查询可用的抢单商品
     * @param time
     * @param id
     * @return
     */
    public SeckillGoods one(String time, String id);

}
